# coding=utf-8
def main():
    while 1:
        choice = raw_input('Input Your Choice:')
        if choice == '1':
            print 'choice is %s' % choice
            lst = raw_input('Enter a list,eg. 1 2 3:')
            lst = lst.split(' ')
            print average(lst)
        elif choice == '2':
            print 'choice is %s' % choice
        elif choice == '3':
            print 'choice is %s' % choice
        elif choice == 'quit':
            break
        else:
            continue
            
def average(lst):
    print type(lst)
    if len(lst):
        sum = 0
        for i in lst:
            sum += int(i)
        return sum/len(lst)
    else:
        return None

main()